package com.ysd.lis.entity;

import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 考试-小题表
 * </p>
 *
 * @author LiuQi
 * @since 2024-04-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("WK_TEST_SMALL")
public class WkTestSmall extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 试卷ID
     */
    @TableField("PAPER_ID")
    private String paperId;

    /**
     * 大题ID
     */
    @TableField("BIG_SUBJECT_ID")
    private String bigSubjectId;

    /**
     * 知识内容id
     */
    @TableField("KNOWLEDGE_ID")
    private String knowledgeId;

    /**
     * 顺序
     */
    @TableField("SEQ")
    private Integer seq;

    /**
     * 用户id
     */
    @TableField("USER_ID")
    private String userId;

    /**
     * 分数
     */
    @TableField("SCORE")
    private Integer score;

    /**
     * 题目类型
     */
    @TableField("QUESTION_TYPE")
    private String questionType;

    /**
     * 问题ID
     */
    @TableField("QUESTION_ID")
    private String questionId;

    /**
     * 问题名称
     */
    @TableField("QUESTION_NAME")
    private String questionName;

    /**
     * 问题选项集合
     */
    @TableField(exist = false)
    private List<WkKnowledgeTestOption> wkKnowledgeTestOptions;

    /**
     * 考试选项集合
     */
    @TableField(exist = false)
    private List<WkTestOption> wkTestOptions;

    /**
     * 考生答题选中项(单选)
     */
    @TableField(exist = false)
    private String checkOption;

    /**
     * 考生答题选中集合(多选)
     */
    @TableField(exist = false)
    private List<String> checkOptions;

    /**
     * 考生答题答案（填空、简答）
     */
    @TableField(exist = false)
    private String wkTestValue;

    public WkTestSmall() {
        this.checkOptions = new ArrayList<>();
    }
}
